Refactor and image

refactor database related codes
add image service
add drop upload at editor