clarified function signatures, change export names, changed public api and dbModule api