open database correctly.
Fix damn KY table.