Use db to determine current project instead of localstorage.