Added support for tutorial states in the database

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>