core: Added database schema