Added php core code

Dao and Models