upgrade db1039 to trusty and mariadb 10

Change-Id: Ibd6ec557bfa1f03947710d730ead597cd598c336