add logic for connection to mysql cluster