apply singleton pattern to database connection
fix reference error
change internal design of documenter module