Added insert and fixed getById.
Added getByDate.
Added the start script.