adapted change_approved to new db class