optimized the db transactions (speedup x4 for save ?)