Wrote the php code and managed the database