fix metadata database depends

database pulls in mysql, new mysql v5 is not backward compatible.
Need to pull in mysql depends first at v4, then pull in database.

Change-Id: Ib27c9c77e7eaf25b11a3f4fb7871a6b3a8acba62
Related-Bug: #1300524