fixed bug with database version conflicts between python 2 and 3 versions