Create convertDB.php

with fixes