Documenting createDB and removing commented code