sets up postgresql database