Mysql auth and select example with struct implementation