storing user connections mysql