Code to upload image is mostly there

I can't figure out why, but images don't get added to the database and i
get no error