install pg and create db