added database access for the server