Create unit tests for database migration

Change-Id: I6103e14ef2c6c7b6cf58eff0980ecf3dd453aca9
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>