added format handling
fixed syntax error
fixed syntax error
updated dbcode
two layer data store
fixed error