Fixed deprecated errorMsg() and successMsg() functions
Upgraded tableObject to new db module