basic standalone stuff seams to be working
removing db dir before tests
read stream
write stream and close