updated db signature again, added entry_t struct