fix mysql null field constrian