Add postgres support in app.