Connect session using postgres