Consolidate how the database is accessed.