Added data access layer.