Fixed database mod _id issue

Signed-off-by: Jack Yen <jack@jackyen.com>