master database and slave database for rails 4.1.1, used as scope