Minor changes on how to use $__db and $__app