All sql moved to data.php.