Add support for changing sql command from code.