Quick implementation of database access