adding database access