Gemfile specifies gem 'pg', '~> 0.18' and the database engine is currently PostgreSQL 9.6 - which needs to be upgraded to PostgreSQL 12. Gemfile.lock includes pg (0.21.0) and pg (0.18.0). I don't have a good understanding of how these two are related, if they are at all related. How do the libraries relate to the database engine?