fix to db
Migration to postgresql