flask migrations and improves