maps working and saves to db