finished database access