Change return value of db functions from vectors to maps
Fix migrations