Cleanup.
Some fixes for search.
Some fixes.
Fix issues with update and prepared statements.
Fix issues in queries.