Sets up postgres