wtffff
fixed db.batch() and improve tests