Implement database exercise