Update gems and switch to Postgres for database