rails app to the same database example