fixed get record but table not exits error