$sql = "SELECT * FROM cpg_pictures WHERE filename ='$pic_fname'";
$sql = "SELECT * FROM ".$CONFIG['TABLE_PREFIX']."pictures WHERE filename ='$pic_fname'";