added collapse to railsdbadmin
fixed bugs in scoped_by