Switch database to psql, add new application_helper, new tests, cleaning views