Make DB scheme be compatible with MySQL, PostgreSQL and SQLite

PostgreSQL didn't worked with BLOB data type so more universal
LargeBinary was used

MySQL failed to create index on VARCHAR(512) column on InnoDB engine
because of internal limits. Column was used for fully qualified class names
that cannot have international characters so ASCII collation was used
for that column making 1 char = 1 byte and thus fitting to MySQL length limit

Change-Id: I3e2e70476a5092e22874fa69f4fa81e9d19fb419
Merge "Make DB scheme be compatible with MySQL, PostgreSQL and SQLite"