Use more generic methods for database accesses.