[FIX] Fixed bug with invalid number of bytes in wide string.
[ADD] Added global static counter of opened databases (Daily Table).