started setting up PHP classes for database interaction, setup ajax functions in javascript and error handing if somthing goes wrong.