Implement database. Saving of map to database works.