fix database issues?