fix db access logic
process commands async
add tests for saving and loading canvas
set masking to true