Added addon postgres to trvis config and chagned db settings for test setup.