upload image and insert into db, works