fix for lingering db connections, closes #6, and allow for hidden markdown files