Changed developement and test database to postgresql
Aded helper function for displaying correct title based