raw zimages to db working