Adding database love for image upload