Added getRawRange function to db.js