Use pythons sqlite input validation.