added the ability to pass callbacks with the sql.