add test for put attachment
add write json and multipart helpers functions
use updated DatabaseResponse struct
use helper functions from utils
rename DbResponse to DatabaseResponse