Bugfix SQL bug datetyle

Fix #5 close #55