create basic layout, improve syncing

-todo database, user sessions