setting up postgresql as db