improve db transfer