Added state to task status
init versions of database (clean and for dev. work)
code refactored for more comfortable using of database
DataStorage misprint in name fixed
added some stored procedures