Feature/migrate meta to db