update gems and database