Made changes to the online database and php code to reflect the correct database structure