fixed db insert