add rvm libs, reworked scripts/db, update #1627