renamed databases, used shorter synatx, added .rvmrc to .gitignore

* I think we should not append `db/...` to database names
* some of the code could be shortened

* added .rvmrc to .gitignore