Add tests for threads and entries
Add mysql settings