refactor logs
add memdb as dev dep