[entropy.db] rewrite needed libraries SQL schema, keep compat.