with pg database
added authentication