fixed minor php bugs, changed variable names to be in line with database schema and sucessfully used insert-data.php to add a user to the local database