added c functions to import python code into C++ interface
merging with dbInit