trying to fix database issue