fixed problem while spawning a horse, and fixed Type mismatch in SQLitehandler.java