modify php to connect to db