connected database to rails