Re-adding the db_fns.php and create sql statement