added sql command interception

here: 81c211ee5bba0b3a04eac077d4beb29c3bd2947e