moved some message handling to db actor

#223