core and database