communiate DB in Rails like HTTP request