should work better this way for existing dbs