bug 807: escaping value from the database.