adding locked_at field to queries table