fixed compile-errors in sql-module