Fix echo and dbtable error