change db discovery pattern