Handling database access object more efficiently, as static.