add function

add functon about generate code for dump database