Implemented command/query separation with local db