added database access api