Implement flask-migrate completely; might have some bugs