working version

with SQL Enable, loggers