init php and db