Implemented embedded database. FINALLY!