- Cleaned unused code;
- Fixed possible string bugs in syncdatabase code.