turned con from pointer to struct

now getting segfaults on mysql_close();