added logic and tests for making empty db