Implement the database module