Moved database directory to root.
Create and pass around database reference
Moved back
Finished the initialization function.
Removed the population stub function
Removed purge argument.
Removed filesystem checks.