picture upload, pb with writing to db