add database access layer.