Added db migration and small serializers changes (#157)