use json
simplify code
add basic map for db post