Initial PHP code for interfacing with database. PR