Added database access