changed database from sqlite to pg.
fix whitespace in event controller
update event migration