Fix for mysqli persistent connections.

Removed connection handling from mysqli extension to let mysql_common do it
Only save the connection if its persistent and a new one

Closes #3414