updated the slick code to work on PostgreSQL (for heroku)