Move db logic to persistence actor