fixed insert problem - added resetDB when synchronising for now (TO BE REMOVED)