Saving uploaded file information to database