Implement database