started database sync method..... still have stuff to change.