A basic database access layer.