some new unit tests
remove encoding in mysql sessions and use more appropriate data types