mysql queries 2
alpha release.

This works but needs
* code improvements
* code cleanup
* better error handling