recursivly strip periods from db name