got oop db working. function calls class.db.php and uses its functions to set a value in db.