communiate DB in Rails like HTTP