fix select db