[db] Adds the base for hashtable-based databases.