changing db type