gems and databases set up