php 5.3 array syntax change and db reconnect issues