upload img and add to database