edited control.php and sql file