select betewwen local and bps mysql user