working on recreate DB when tables missing

Signed-off-by: Peter <mcheung63@hotmail.com>