SQL: setup the postgresql database