Add gems and edit database connection