synchronization problems fixed. no need for a DB, just needed some smarter refactoring