fix tablename in db