generate controller, migrate database