Move schemas from helper to db, make db in-memory