Setting up gems and database