Adding gems and configuring database