Hopefully fixed multiple db connections/multiple db helpers issues by
added bool flag to dbmanager class to ensure its constructor only called
once.