changed database from sqlite to pg.
add user login path
fix whitespace in event controller