set up rails and database