update db global for testing purpose