feat(core): communication with the database