modified nuodb.cpp and gemspec