add db migration
finished api implements