extracted SQLMap class and setup code