core and database.pho