setting postgres as database