Revert "forgotten dli change for mysql"

This reverts commit 198655ece4fade3c5670605d6cd98c59836a86fc.
Revert "added ResetSession function in DynamicSql"

This reverts commit a36abec685b834e701bef0092ea5d87c60d1863c.
another attempt at fixing the DynamicSql for MT
default value for MAX_AGE
sqlite compatible date_sub function
basic integration tests