Fix bug if all the python libraries have been installed then the pre_db_json is not called