Configure postgres database