Code to connect ruby to database