Hardcoded schema for output database so types are not incorrectly guessed, set python type to Int when possible for database comparisons