fix for dbsize not working