added course model and saving courses into indexeddb
cleaned up idbstore implementation