reducing database i/o by using actors