Finally got postgresql working!