fixed db upload