Fixed a signed-unsigned comparison error in db_test

Summary:
Fixed a signed-unsigned comparison error in db_test

Test Plan:
make db_test