Added status changing.
Added db schema.