sparate code

add sqlinsert and sqlHaveImage