database access now works