Changes to scheme and Solution model

Added timestamp fields, changed state setting logic
Removed reference DBs  - relying on schemes